<form id="pagerForm" method="post" action="<?echo __WWWROOT__.'Admin/menu/index.php'?>">
	<input type="hidden" name="pageNum" value="<?echo $page['pageNum']?>" />
	<input type="hidden" name="numPerPage" value="<?echo $page['numPerPage']?>" />
	<input type="hidden" name="orderField" value="<?echo $page['orderField']?>" />
	<input type="hidden" name="orderDirection" value="<?echo $page['orderDirection']?>" />
	<input type="hidden" name="id" value="<?echo isset($_POST['id'])?$_POST['id']:''?>">
	<input type="hidden" name="name" value="<?echo isset($_POST['name'])?$_POST['name']:''?>" />
	<input type="hidden" name="url" value="<?echo isset($_POST['url'])?$_POST['url']:''?>" />
</form>

<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="<?echo __WWWROOT__.'Admin/Menu/index.php'?>" method="post">
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td>
					模块ID：<input type="text" name="id" value="" />
				</td>
				<td>
					名称：<input type="text" name="name" value="" />
				</td>
				<td>
					路径：<input type="text" name="url" value="" />
				</td>
				<td>
					<div class="subBar">
						<ul>
							<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
							<li><div class="buttonActive"><div class="buttonContent"><button type="button" onclick="return navTabSearch(this);">刷新</button></div></div></li>
						</ul>
					</div>
				</td>
			</tr>
		</table>
		
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="<?echo __WWWROOT__.'Admin/Menu/add.php'?>" target="navTab"><span>添加</span></a></li>
			<li><a class="edit" href="<?echo __WWWROOT__.'Admin/Menu/update.php?id='?>{id}" target="navTab"><span>修改</span></a></li>
			<li><a class="delete" href="<?echo __WWWROOT__.'Admin/Menu/delete.php'?>" target="selectedTodo"  rel="ids" postType="string" title="确实要删除这些记录吗?"><span>批量删除</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="114">
		<thead>
			<tr>
				<th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				<th orderField="id" class="<?echo $page['orderDirection']?>">模块ID</th>
				<th>名称</th>
				<th>路径</th>
				<th>描述</th>
				<th>父节点ID</th>
				<th>级别</th>
				<th>创建时间</th>
				<th>弹出方式</th>
				<th>宽度</th>
				<th>高度</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<?foreach($menus as $m){?>
			<tr target="id" rel="<?echo $m['id']?>">
				<td><input name="ids" value="<?echo $m['id']?>" type="checkbox"></td>
				<td><?echo $m['id']?></td>
				<td><?echo $m['name']?></td>
				<td><?echo $m['url']?></td>
				<td><?echo $m['info']?></td>
				<td><?echo $m['parent']?></td>
				<td><?echo $m['level']?></td>
				<td><?echo $m['create_time']?></td>
				<td><?echo $m['target']?></td>
				<td><?echo $m['width']?></td>
				<td><?echo $m['height']?></td>
				<td>
					<a target="ajaxTodo" href="<?echo __WWWROOT__.'Admin/Menu/delete.php?ids='.$m['id']?>" class="btnDel"  title="确定要删除吗?">删除</a>
					<a target="navTab" href="<?echo __WWWROOT__.'Admin/Menu/update.php?id='.$m['id']?>" class="btnEdit" width="550" height="330">编辑</a>
				</td>
			</tr>
		    <?}?>
		</tbody>
	</table>
	<?include(ROOT.'Admin/View/Include/page.php')?>
</div>
